<?php
/**
 * Created by PhpStorm.
 * User: Steven
 * Date: 2017/7/4
 * Time: 11:55
 */

namespace app\student\validate;


use think\Validate;

class FrontStudentValidate extends Validate
{
    protected $rule = [
        ['student_id', 'require|gt:0', '学生不能为空|请先选择学生'],
        ['class_id', 'require|gt:0', '班级不能为空|请选择班级'],
        ['course_time', 'require|gt:0', '请假课时不能为空|请选择请假课时'],
        ['reason', 'require', '请假原因不能为空'],
    ];
}